package com.guigu.youxuan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.guigu.youxuan.pojo.SupplierInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface SupplierInfoMapper extends BaseMapper<SupplierInfo> {
    List<SupplierInfo> queryAll(SupplierInfo supplierInfo);

    /**
     * 拿用户id查询供应商id
     * @param sysUsersId
     * @return
     */
    int listSupplierId(int sysUsersId);
    /**
     * 供应商资料维护带所登录的用户id查询供应商数据
     * @param sysUsersId
     * @return
     */
    SupplierInfo list(int sysUsersId);
}
